/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ykht.proj.activity.entity.VOrderCard;
import com.ykht.proj.activity.vo.GetVOrderVO;
import com.ykht.proj.activity.vo.OrderGroup;
import com.ykht.proj.activity.vo.OrderInfo;
import com.ykht.proj.activity.vo.VOrderCardVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单和卡的关联表
 *
 * @author csg
 * @date 2021-05-21 14:22:31
 */
@Mapper
public interface VOrderCardMapper extends BaseMapper<VOrderCard> {
	/**
	 * 企业购买卡列表 分页查询
	 *
	 * @param page         分页对象
	 * @param vOrderCardVo 订单和卡的关联表
	 * @return
	 */
    IPage<VOrderCardVo> getEntOrderCardPage(Page page, @Param("req") VOrderCardVo vOrderCardVo);

	/**
	 * 企业购买卡详情列表 分页查询
	 *
	 * @param page         分页对象
	 * @param vOrderCardVo 订单和卡的关联表
	 * @return
	 */
	IPage<VOrderCardVo> getEntOrderCardDetailsPage(Page page, @Param("req") VOrderCardVo vOrderCardVo);

    List<OrderGroup> getOrderGroup(Long orderId);

	/**
	 * 企业 导出兑换码excel
	 * @param vOrderCardVo
	 * @return
	 */
	List<VOrderCardVo> getEntExportRedeemCode(@Param("req") VOrderCardVo vOrderCardVo);

}
